﻿@model IoTGateway.ViewModel.BasicData.DeviceConfigVMs.DeviceConfigVM
@inject IStringLocalizer<Program> Localizer;

<wt:form vm="@Model" height="400">
    <wt:row items-per-row="ItemsPerRowEnum.Two">
        @*<wt:textbox field="Entity.DeviceConfigName" />*@
        @{
            if (Model.Entity.EnumInfo != null)
            {
                <wt:combobox field="Entity.Value" items="AllTypes" />
            }
            else
            {
                <wt:textbox field="Entity.Value" />
            }
        }
        <wt:textbox field="Entity.Description" />
        @*<wt:textbox field="Entity.EnumInfo" />*@
        @*<wt:combobox field="Entity.DeviceId" items="AllDevices" />*@
    </wt:row>
    <wt:hidden field="Entity.ID" />
    <wt:row align="AlignEnum.Right">
        <wt:submitbutton />
        <wt:closebutton />
    </wt:row>
</wt:form>
